<!--
 * @Author: your name
 * @Date: 2020-12-31 00:12:05
 * @LastEditTime: 2021-01-14 08:38:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /bhFun/index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script src="./bhFun.js"></script>
    <script>
        window.log = console.log;
        const myBhFun = new bhFun();

        let obj1 = function () {
            this.name = 'Billy';
            this.getName = function () {
                return this.name;
            }
            // return {
            //     name: 'Billy',
            //     age: 18,
            //     createTime: new Date(),
            //     getName() {
            //         console.log(this.name)
            //     },
            //     newObj: {
            //         say: 'hello world',
            //         getAge() {
            //             console.log(this.age)
            //         }
            //     }
            // }
        }

        let obj2 = function () {
            obj1.call(this);
        };

        myBhFun.deepCopyObject(obj1, obj2);
        let test = new obj2()
        log(test)

        // log(myBhFun.accAdd(.1, .2));
        // log(myBhFun.queryUrlParameters());
        // log(myBhFun.validateIdCard('440104199301251617'))
    </script>
</body>

</html>